home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.5 Applications 2004 May
/
SGI IRIX 6.5 Applications 2004 May.iso
/
dev
/
java2_dev.idb
/
usr
/
demos
/
java2
/
JNI-invocation-example
/
Prog.java.z
/
Prog.java
Wrap
Text File
|
2004-02-24
|
345b
|
12 lines
public class Prog {
public static void main(String[] args) {
if (args.length != 1) {
System.out.println("Usage: java Prog <one argument>");
} else {
System.out.println("Hello, World! (argument is: \"" + args[0] + "\")");
String value = System.getProperty("java.vm.name");
System.out.println(value);
}
}
}